<template>
	<view>
		<view class="relative-border">
			<view v-for="(item,index) in dataList" :key="index" :class="{'invencurrent':(currentIndex === index)}">
				<view class="invent-listcon" @click="invent(index)">
					<view class="invent-oddnumber">
						{{item.title}}
					</view>
					<view class="invent-content">
						<view class="invent-content-top">
							{{item.state}}
						</view>
						<view class="invent-content-top">
							{{item.code}}
						</view>
						<view class="invent-content-top">
							{{item.name}}
						</view>
						<view class="invent-content-top">
							{{item.department}}
						</view>
						<view class="invent-content-top">
							{{item.position}}
						</view>
						<view class="invent-content-top">
							{{item.sourcedocument}}
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 按钮 -->
		<view class="flexinven-button">
			<u-row gutter="16" class="flexinven-con">
				<u-col span="6">
					<view class="flexinven-flex" @click="view">查看</view>
				</u-col>
				<u-col span="6">
					<view class="flexinven-flex">返回</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [{
					title: '11、工单号: WO1615245',
					state: '工作状态: 待审',
					code: '设备编码: 2015',
					name: '设备名称: 22',
					department: '使用部门: 行政管理部门',
					position: '位置:',
					sourcedocument: '来源单据: 自制',
				}]
			};
		},
		methods: {
			view() {
				uni.navigateTo({
					url: 'pages/Workorder/Conduct/Examine'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	.invencurrent {
		background-color: #f3f2f5;
	}
</style>
